﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DNA
{
    public partial class korel_report : Form
    {
        public korel_report()
        {
            InitializeComponent();
        }

        public void make_report()
        {
            report.Clear();
            corel cor = this.Owner as corel;
            if (cor.kolnul >= 1)
            {
                report.Text = "Koл-во независимых SNP: " + cor.kolnul.ToString() + '\n'+cor.who1+'\n';
            }
            if (cor.kolmal >= 1)
            {
                report.Text = report.Text+ "Koл-во слабозависимых SNP: " + cor.kolmal.ToString() + '\n'+cor.str_mal + '\n' ;
            }
            if (cor.kolmened >= 1)
            {
                report.Text = report.Text + "Koл-во SNP со средней зависимостью: " + cor.kolmened.ToString() + '\n' + cor.str_sred + '\n';
            }
            if (cor.kolsilno >= 1)
            {
                report.Text = report.Text + "Koл-во сильнозависимых SNP: " + cor.kolsilno.ToString() + '\n' + cor.who2 + '\n';
            }
        }

        private void OK_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
